import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/product` + url, ...arg)
export default {
	productPage(data) {
		return request('/pageList', data, 'post')
	},
	listAllProduct(val, flag) {
		return request('/listAll?val=' + val + '&flag=' + flag, '', 'get')
	},
	addProduct(data) {
		return request('/add', data, 'post')
	},
	editProduct(data) {
		return request('/edit', data, 'post')
	},
	delProduct(data) {
		return request('/del', data, 'post')
	}
}
